import request from '@/axios/index.ts';

export const getUserPostList = (data:any)=>{
    return request({
        url:'/post/list',
        method:"post",
        data
    })
}


export const publicPost = (data:any)=>{
    return request({
        url:'/post/add',
        method:"post",
        data
    })
}


export const deletePost = (id:number)=>{
    return request({
        url:'/post/delete',
        method:"post",
        data:{id}
    })
}


export const updatePost = (data:any)=>{
    return request({
        url:'/post/update',
        method:"post",
        data
    })
}
